#include "StdAfx.h"
#include "CMainPage.h"
#include <exdisp.h>

CMainPage::CMainPage(HWND hwnd,CPaintManagerUI& paint_manager_)
{
	m_hWnd = hwnd;

	CDialogBuilder builder;
	CContainerUI* pCMainPage = static_cast<CContainerUI*>(builder.Create(_T("MainPage.xml"),(UINT)
		0,NULL,&paint_manager_,NULL));
	if( pCMainPage )
	{
		this->Add(pCMainPage);
	}
	else
	{
		this->RemoveAll();
		return;
	}
}


CMainPage::~CMainPage(void)
{
}

void CMainPage::Init()
{
}

LRESULT CMainPage::OnSysCommand(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
{


	return 0;

}